<%@page import="karaoke.negocio.GestionSala"%>
<%@page import="karaoke.dao.SalaDAO"%>
<%@page import="java.util.Collection, karaoke.excepcion.DAOExcepcion"%>
<%@page import="karaoke.modelo.Sala"%>
<%@page import="karaoke.negocio.GestionSala,java.util.*"%>
<%@page import="karaoke.negocio.GestionLocal"%>
<%@page import="karaoke.modelo.Local"%>
<%@page import="karaoke.modelo.Usuario"%>
<%@page import="karaoke.negocio.GestionLocal,java.util.*"%>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="iso-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<title>Bootstrap, from Twitter</title>

<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery-ui-1.10.2.custom.js"></script>

<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/bootswatch.css" rel="stylesheet">
<link href="css/jquery-ui-1.10.2.custom.css" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

</head>

<%
	GestionSala gsala = new GestionSala();
	Collection<Sala> listasala = gsala.listar();
	GestionLocal negLoc = new GestionLocal();
    Collection<Local> listalocal = negLoc.listar();
%>
<body class="preview" id="top">

	<div class="container">
		<form method="post" action="ComentarSalaServlet">
			<table width="100%">
				<tr>
					<td><h1>Comentar Sala</h1></td>
					<td align="right"></td>
				</tr>
			</table>

			<div class="row">

				<div class="span8">

					<div class="well">

						<form class="form-horizontal well">
							<fieldset>
								<legend>Comentario</legend>

								<%
                  Usuario objUsuario = (Usuario)session.getAttribute("USUARIO_ACTUAL");
                  int codPersona= objUsuario.getcodpersona(); 				   
			    %>
								<input type="hidden" name=codPersona id="codPersona"
									value=<%=codPersona%>>

								<!--  <div class="control-group">
								<label class="control-label" for="input01">Local:</label>
								<div class="controls">
									<select name="gelocal" id="gelocal">
										<option value="0">Seleccione</option>
										<%
											for(Local c:listalocal){
												out.println("<option value= >" +c.getNombre() +"</option>"); 
																		}
										%>
									</select>
								</div>
							</div> -->

								<div class="control-group">
									<label class="control-label" for="input01">Sala:</label>
									<div class="controls">
										<select name="gesala" id="gesala">
											<option value="0">Seleccione</option>
											<%
											for(Sala c:listasala){
												out.println("<option value="+c.getCodigo()+">"+c.getNombre()+"</option>");
													//out.println("<option value= >" +c.getCodigo() +"</option>"); 
																		}
										%>
										</select>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label" for="input01">Estrellas:</label>
									<div class="controls">

										<p>

											<td><select name="calif">
													<option value="0">Seleccione</option>
													<option value="1">1</option>
													<option value="2">2</option>
													<option value="3">3</option>
													<option value="4">4</option>
													<option value="5">5</option>
											</select></td>
										</p>
									</div>
								</div>

								<!--  <div class="control-group">
								<label class="control-label" for="input01">Comentario:</label>
								<div class="controls">

									<p>
										<textarea name="txtComentario" rows="6" col="100" />
										</textarea>
									</p>
								</div>
							</div> -->
								<tr>
									<td>Comentario:</td>
									<br>
									<td><span class="letra2"> <textarea
												name="txtComentario" cols="150" rows="5" id="txtDescripcion"></textarea>
									</span></td>
								</tr>

								<div class="form-actions">
									<button type="submit" class="btn btn-primary">Enviar</button>
									<button type="reset" class="btn">Cancelar</button>
								</div>



							</fieldset>
						</form>


					</div>
				</div>



				<div class="span4"></div>

			</div>

			<footer>
				<p>&copy; 2013 Orion</p>
			</footer>
		</form>
	</div>

	<!-- /container -->

	<!-- Le javascript
    ================================================== -->
	<script src="js/bootstrap-affix.js"></script>
	<script src="js/bootstrap-alert.js"></script>
	<script src="js/bootstrap-button.js"></script>
	<script src="js/bootstrap-carousel.js"></script>
	<script src="js/bootstrap-collapse.js"></script>
	<script src="js/bootstrap-dropdown.js"></script>
	<script src="js/bootstrap-modal.js"></script>
	<script src="js/bootstrap-tooltip.js"></script>
	<script src="js/bootstrap-popover.js"></script>
	<script src="js/bootstrap-scrollspy.js"></script>
	<script src="js/bootstrap-tab.js"></script>
	<script src="js/bootstrap-transition.js"></script>
	<script src="js/bootstrap-typeahead.js"></script>

	<script>
		$(function() {
			$("#datepicker").datepicker();
		});
	</script>

</body>
</html>
